package com.taiyuan.tongcheng.config;

public class TcConfig {
   public static String HOT_LINE="4001565556";
   //途径点个数限制
   public static int halfStationLimit =4;
   //小时
   public static String[] HOUR = new String[]{"0点","1点","2点","3点","4点","5点","6点","7点","8点","9点","10点","11点","12点","13点","14点","15点","16点","17点","18点","19点","20点","21点","22点","23点"};
   public static String[] HOUR_VALUE = new String[]{"00:","01:","02:","03:","04:","05:","06:","07:","08:","09:","10:","11:","12:","13:","14:","15:","16:","17:","18:","19:","20:","21:","22:","23:"};
   //分
   public static String[] MINUTE_VALUE = new String[]{"00:00","30:00"};
   /**预约日期从三小时开始***/
   public static int LIMIT_HOUR = 3;
   public  class OrderStatus{
	   /**待响应***/
	   public static final int PRE_RESPONSE=1;
	   /***待收货***/
	   public static final int PRE_TAKEGOODS=2;
	   /***袋装货***/
	   public static final int PRE_CARRY=3;
	   /***配送中***/
	   public static final int DELIVERING=4;
	   /***完成***/
	   public static final int FINISH=5;
	   /***取消***/
	   public static final int CANCEL=9;
   }
   
   public class OrderStatusLable{
	   public static final String PRE_CARRAY = "待配送";
	   public static final String CARRAY_ING = "服务中";
	   public static final String FINISH = "已完成";
	   public static final String PRE_RES = "待响应";
   }
   /**
    * 
   * @Description: 获取当前状态
   * @param state
   * @return
   * @return String
   * @throws
   * @autour Administrator
   * @date 2015年9月13日 下午6:02:24 
   * @update (date)
    */
    public static String getStateName( int state) {
    	String  stateName="";
    	switch (state) {
		case TcConfig.OrderStatus.PRE_TAKEGOODS:
			stateName= OrderStatusLable.PRE_CARRAY;
			break;
		case TcConfig.OrderStatus.PRE_CARRY:
			stateName= OrderStatusLable.PRE_CARRAY;
			break;
		case TcConfig.OrderStatus.FINISH:
			stateName= OrderStatusLable.FINISH;
			break;
		case TcConfig.OrderStatus.DELIVERING:
			stateName= OrderStatusLable.CARRAY_ING;
			break;
		case TcConfig.OrderStatus.CANCEL:
			stateName= "已取消";
			break;
		default:
			stateName= "";
			break;
		}
    	return stateName;
    }
    
    public class IntentTag{
    	 public static final String Order_Id = "Order_Id";
    	 public static final String CACHE_CITYINFO ="CACHE_CITYINFO" ;
    }
    
    public static final String DRIVER_LABLE_FRIST="司机";
    public static final String DRIVER_LABLE_END  ="已接单，正在前往你所在的位置，请保持通讯正常！";
    
}
